package br.com.romerito.app;

import br.com.romerito.gui.logo.Help;
import br.com.romerito.gui.logo.Screen;
import br.com.romerito.gui.splash.SplashScreen;
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author Romerito Campos
 */
public class MidletApp extends MIDlet {

    private Screen screenLogo;

    private Menu menu;

    private SplashScreen splash;

    public static MidletApp app;

    

    public MidletApp(){
        splash = new SplashScreen();
        screenLogo = new Screen();    
        menu = new Menu();        
        app = this;        
    }

    public void startApp() {
        Display.getDisplay(this).setCurrent(splash);
    }

    public void pauseApp() {

    }

    public void destroyApp(boolean unconditional) {
        notifyDestroyed();
    }
   
    public void showMenu(){
        Display.getDisplay(this).setCurrent(menu);
    }

    public void showLogo(){
        Display.getDisplay(this).setCurrent(screenLogo);
    }

    public void showHelp(){
        Display.getDisplay(this).setCurrent(new Help());
    }

    public Screen getScreenLogo(){
        return screenLogo;
    }
}
